import { SDKDataItemInfo } from "../../SDKConfig";
import { SDKAdParam } from "../../SDKDefine";
import { BaseSDK } from "./BaseSDK";
import { IAdAdapter } from "./IAdAdapter";
export abstract class BaseAdMgr extends BaseSDK {

    abstract open(param: SDKAdParam): void

    abstract close(index: number): void

    abstract has(): boolean;

    abstract destroy(): void

    abstract init(): void;

    abstract put(ad: IAdAdapter): void

    abstract get(index?: number): IAdAdapter;


    protected cfg: SDKDataItemInfo;
    protected data: string[] = [];


    protected curIndex: number = 0;

    getData() {
        return this.data;
    }

    setCurIndex(idx: number) {
        this.curIndex = idx;
    }

    getCurIndex() {
        return this.curIndex;
    }
    setData(data: string[]) {
        this.data = data;
    }
    setCfg(cfg: SDKDataItemInfo) {
        this.cfg = cfg;
    }

    getCfg() {
        return this.cfg;
    }



}